export const codeToUpload = (option: any) => {
  // 获取小程序码的参数
  const decodedrecid = decodeURIComponent(option.scene) as any; // 解码 URL 编码的字符串
  let extractedrecid = decodedrecid.split("=")[1]
  if(typeof extractedrecid === 'undefined'){
    extractedrecid = decodeURIComponent(option?.query?.scene).split("=")[1] // 解码苹果的 URL 编码字符串
  }

  // 存储获取到的id
  if (typeof extractedrecid !== 'undefined') {
    // TODO: 跳转病人上传页面
  }
}